import request from "@/utils/request"
const BASE_URL = process.env.VUE_APP_BASE_URL

/**
 * 查询列表
 * type 类型 1：crm 3：进销存
 * @param {*} data
 */
export function adminMessageConfigQueryAPI(type) {
	return request({
		url: BASE_URL + `adminMessageConfig/queryList/${type}`,
		method: "post"
	})
}

/**
 * 修改配置
 * @param {*} data
 */
export function adminMessageConfigUpdateAPI(data) {
	return request({
		url: BASE_URL + "adminMessageConfig/updateConfig",
		method: "post",
		data: data,
		headers: {
			"Content-Type": "application/json;charset=UTF-8"
		}
	})
}
